<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});
Route::match(['get', 'post'], 'category/search', ['as' => 'search', 'uses' => 'CategoryController@search']);
Route::match(['post','get'],'tag/search',['as'=>'search','uses'=>'TagController@search']);
Route::match(['post','get'],'cache/search',['as'=>'cache','uses'=>'CacheController@search']);

Route::controller('zone','ZoneController');
Route::controller('cache','CacheController');
Route::controller('category','CategoryController');
Route::controller('setting','SettingController');
Route::controller('home','HomeController');
Route::controller('tag','TagController');
Route::controller('boot','BootstrapController');
Route::controller('test','TestController');
//Route::group(['middleware'=>['auth']],function(){
//    Route::controller('home','HomeController');
//});